package cn.study.controller;

import cn.study.entity.StudyBanner;
import cn.study.entity.StudyEmployee;
import cn.study.service.OssService;
import cn.study.service.StudyEmployeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.util.List;

@Controller
@Slf4j
@RequestMapping("/study-person")
public class StudyPersonController {
    @Resource
    StudyEmployeeService studyEmployeeService;


    @GetMapping("/list/{id}")
    public String details(Model model,@PathVariable("id") Integer id) {
        StudyEmployee emplist = studyEmployeeService.getById(id);
        model.addAttribute("emp", emplist);
        return "study_persons";
    }

}
